#include "Orc.h"

Orc::Orc(ID2D1Bitmap *tex) : angle(0), speed(0)
{


					//Texture,Width,Height
	orcSprite = new Sprite(tex,103,116);

	position.width = 300;
	position.height = 300;

	orcSprite->SetFrame(1);

}
Orc::~Orc()
{
	delete orcSprite;
}
void Orc::Render(ID2D1HwndRenderTarget* render)
{
	
	render->SetTransform(D2D1::Matrix3x2F::Rotation(angle,D2D1::Point2F(100.0F,100.0F)));
	orcSprite->Render(position,render);
	render->SetTransform(D2D1::IdentityMatrix());
}
void Orc::Update(long elapsedTime)
{


}